﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Espam.Idiomas.Decimo.Tesis.Web
{
    public partial class UI_Logout : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Session_End();
            Session.Abandon();
            Session.Contents.RemoveAll();
            Response.Redirect("UI_Login.aspx");
            
        }
        private void Session_End()
        {
            //OnlineActiveUsers.OnlineUsersInstance.OnlineUsers.SetUserOffline(Session["nameEspamIdiomasVarSession006"].ToString());
            Global.currentNumberOfUsers -= 1;
        }
    }
}